﻿using System;

namespace QuantBox.XApi
{
    internal class IdGenerator
    {
        private const string OrderPrefix = "oq";
        private int _orderRef;
        public IdGenerator()
        {
        }

        public static string GetIdFromThirdRef(string thirdRef)
        {
            return thirdRef;
        }

        public int GetExtSystemId()
        {
            _orderRef += 1;
            //最大值：24*60*60*1000+999
            return (int)DateTime.Now.TimeOfDay.TotalSeconds * 1000 + _orderRef % 1000;
        }
    }
}